//
//  GeneralMacro.h
//  Study
//
//  Created by meet on 14-3-5.
//  Copyright (c) 2014年 MEETStudio. All rights reserved.
//

#ifndef Study_GeneralMacro_h
#define Study_GeneralMacro_h

#define Screen_Width       ([[UIScreen mainScreen] bounds].size.width)
#define Screen_Height      ([[UIScreen mainScreen] bounds].size.height)


#define NavigationBar_Height    44
#define StateBar_Height         20
//#define TabBar_Height           49

#ifdef DEBUG
#define HTLog(format, ...) NSLog((@"%s Line:%d Log: " format), __PRETTY_FUNCTION__, __LINE__, ## __VA_ARGS__)
#else
#define HTLog(format, ...)
#endif

#define IS_IOS_7_OR_LATER       ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)
#define IS_PHONE_5_OR_LATER     ([[UIScreen mainScreen] bounds].size.height >= 568)

#define ImageNamed(a)            ([UIImage imageNamed:a])
#define HTLogRect(a)              HTLog(@"%@",NSStringFromCGRect(a))
#define HTLogSize(a)              HTLog(@"%@",NSStringFromCGSize(a))
#define HTLogPoint(a)              HTLog(@"%@",NSStringFromCGPoint(a))
#endif
